#include "pch.h"
#include "BasicState.h"

using namespace Windows::UI::Core;

void BasicState::Initialize()
{
	m_renderer = ref new CubeRenderer();	
	m_renderer->Initialize(CoreWindow::GetForCurrentThread());
}

void BasicState::LoadContent()
{
}

void BasicState::Update(GameClock clock)
{
	m_renderer->Update(clock.GetTotal(), clock.GetDelta());
}

void BasicState::Draw()
{
	m_renderer->Render();
	m_renderer->Present(); // This call is synchronized to the display frame rate.
}